﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BGmove : MonoBehaviour
{
    public float Speed = 3;

    void Update()
    {
        transform.Translate(Vector2.down * Speed * Time.deltaTime);
        if (transform.position.y <= -2275f)
        {
            transform.position = new Vector2(0, transform.position.y + 2275);
        }
    }
}
